﻿/***************************************************************************
*		功能：     系统设置参数实体类(代码生成工具搞定的)
*		作者：     Hydra
*		日期：     2011-08-11 05:47
*		
*		修改日期：
*		修改人：
*		修改内容：
/* *************************************************************************/
using System;
using System.Xml.Serialization;
using System.Runtime.Serialization;
using System.IO;
using System.Text;
using System.Data;
using Deeper.DataAccess;
using Deeper.Common;
using Deeper.Common.Web;
using System.Collections.Generic;
namespace ZhongTian.Model
{
	/// <summary>
	/// 系统设置参数
	/// </summary>
	[Serializable]
	[HTable(TableName = "T_Param", EntityName = "Param")]
	public partial class Param :  IModel
	{
        /// <summary>
        /// 是否新参数
        /// </summary>
        public bool IsNewModel() { return ParamId == 0; }

	    #region 所有的字段
	 
	    
		/// <summary>
		/// paramId
		/// </summary>
		[HColumn("ParamId", Remake = "paramId", DataType = "numeric" , IsPrimary = true , IsIdentity = true , IsUniqueness = true)]
		public int ParamId { set; get; }
        

		/// <summary>
		/// 参数编码
		/// </summary>
		[HColumn("Code", Remake = "参数编码", DataType = "varchar" , Length =100 , IsUniqueness = true)]
		public string Code { set; get; }
        

		/// <summary>
		/// 参数名称
		/// </summary>
		[HColumn("Name", Remake = "参数名称", DataType = "varchar" , Length =200 , IsUniqueness = true)]
		public string Name { set; get; }
        

		/// <summary>
		/// 参数值类型
		/// </summary>
		[HColumn("Type", Remake = "参数值类型", DataType = "int")]
		public int Type { set; get; }
        

		/// <summary>
		/// 布尔值
		/// </summary>
		[HColumn("BoolValue", Remake = "布尔值", DataType = "bit" , IsNullable = true)]
		public bool? BoolValue { set; get; }
        

		/// <summary>
		/// 整数值
		/// </summary>
		[HColumn("IntValue", Remake = "整数值", DataType = "int" , IsNullable = true)]
		public int? IntValue { set; get; }
        

		/// <summary>
		/// 小数值
		/// </summary>
		[HColumn("DecimalValue", Remake = "小数值", DataType = "decimal" , Length =14 , IsNullable = true)]
		public decimal? DecimalValue { set; get; }
        

		/// <summary>
		/// 文本值
		/// </summary>
		[HColumn("StringValue", Remake = "文本值", DataType = "varchar" , Length =400 , IsNullable = true)]
		public string StringValue { set; get; }
        

		/// <summary>
		/// 长文本值
		/// </summary>
		[HColumn("TextValue", Remake = "长文本值", DataType = "text" , IsNullable = true)]
		public string TextValue { set; get; }
        

		/// <summary>
		/// 日期型
		/// </summary>
		[HColumn("DateValue", Remake = "日期型", DataType = "datetime" , IsNullable = true)]
		public DateTime? DateValue { set; get; }
        



        public class F
        {
    		 
			 /// <summary>
			 /// paramId
			 /// </summary>
			 public static Field ParamId = new Field("T_Param","ParamId");
	    	 

			 /// <summary>
			 /// 参数编码
			 /// </summary>
			 public static Field Code = new Field("T_Param","Code");
	    	 

			 /// <summary>
			 /// 参数名称
			 /// </summary>
			 public static Field Name = new Field("T_Param","Name");
	    	 

			 /// <summary>
			 /// 参数值类型
			 /// </summary>
			 public static Field Type = new Field("T_Param","Type");
	    	 

			 /// <summary>
			 /// 布尔值
			 /// </summary>
			 public static Field BoolValue = new Field("T_Param","BoolValue");
	    	 

			 /// <summary>
			 /// 整数值
			 /// </summary>
			 public static Field IntValue = new Field("T_Param","IntValue");
	    	 

			 /// <summary>
			 /// 小数值
			 /// </summary>
			 public static Field DecimalValue = new Field("T_Param","DecimalValue");
	    	 

			 /// <summary>
			 /// 文本值
			 /// </summary>
			 public static Field StringValue = new Field("T_Param","StringValue");
	    	 

			 /// <summary>
			 /// 长文本值
			 /// </summary>
			 public static Field TextValue = new Field("T_Param","TextValue");
	    	 

			 /// <summary>
			 /// 日期型
			 /// </summary>
			 public static Field DateValue = new Field("T_Param","DateValue");
	    	 

        }
        #endregion
		  
	 
	}
    
}